



    <include file="./Tpl/N/Common/header.html" />


    <link href="__ROOT__/Data/Common/Js/Ueditor/third-party/SyntaxHighlighter/shCore.css" rel="stylesheet" type="text/css" />  

    <link href="__ROOT__/Data/Common/Js/Ueditor/third-party/SyntaxHighlighter/shCoreDefault.css" rel="stylesheet" type="text/css" />  

    <script type="text/javascript" src="__ROOT__/Data/Common/Js/Ueditor/third-party/SyntaxHighlighter/shCore.js"></script>  

    <script type="text/javascript">

        SyntaxHighlighter.all();

    </script>








    <style type="text/css" >
        *{margin:0;padding:0;}
        body{margin:10px;font-size:14px;font-family:宋体}
        h1{font-size:26px;margin:10px 0 15px;}
        #commentHolder{border-bottom:1px solid #aaa;}
        .comment{padding:5px 8px;background:#f8fcff;border:1px solid #aaa;font-size:14px;border-bottom:none;}
        .comment p{padding:5px 0;}
        .comment p.title{color:#1f3a87;font-size:12px;}
        .comment p span{float:right;color:#666}
        .comment div{background:#ffe;padding:3px;border:1px solid #aaa;line-height:140%;margin-bottom:5px;}
        .comment div span{color:#1f3a87;font-size:12px;}
    </style>




</head>
<body>

<include file="./Tpl/N/Common/menu.html" />






<section class="content-wrap">


    <div class="container">

        <div class="row">


            <div class="col-md-8 main-content">





                <div class="post-content">




                    <div class="well well-lg">

                        <h3><span class="glyphicon glyphicon-file"></span> {$article.article_title}</h3>


                        <br/>	



                        <div class="article_info">   



                            <span class="glyphicon glyphicon-user"></span> {$article.article_auther}<span></span> 


                            <span class="glyphicon glyphicon-calendar"></span> {$article.article_addtime} <span></span> 

                            <span class="glyphicon glyphicon-eye-open"></span> {$article.article_visits} <span></span> 


                            <span class="glyphicon glyphicon-folder-open"></span> {$article.article_cate_id}  











                            <div class="bdsharebuttonbox">
                                <a href="#" class="bds_more" data-cmd="more"></a>
                                <a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a>
                                <a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a>
                                <a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a><a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网"></a>
                                <a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a>

                            </div>
                            <script>window._bd_share_config = {"common": {"bdSnsKey": {}, "bdText": "", "bdMini": "1", "bdMiniList": false, "bdPic": "", "bdStyle": "2", "bdSize": "16"}, "share": {}, "image": {"viewList": ["qzone", "tsina", "tqq", "renren", "weixin"], "viewText": "分享到：", "viewSize": "16"}};
                                with (document)
                                    0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' + ~(-new Date() / 36e5)];</script>		



                        </div>



                        <br/>	





                        {$article.article_desc}



                        <br/>	

                        <br/>	          







                                {$article.article_content}                
                                  











                 





                        <p>	







                        <volist name="tags_list" id="articletag">


                            <span class="glyphicon glyphicon-tag"></span> 
                            <strong><a href="__APP__/Tag/lists/tag/{$articletag}/">{$articletag}</a></strong>　
                        </volist>





                        </p>











                        <button id="like_btn" type="button" class="btn btn-success">


                            <span class="glyphicon glyphicon-heart"></span> 喜欢 | <sapn id="like_numbers">{$likeNO}</sapn>

                        </button>	

                        <button  type="button" class="btn btn-info">


                            <span class="glyphicon glyphicon-pencil"></span>    <a href="__APP__/Member/addArticle/">记录笔记</a> 

                        </button>	





                    </div>								

















                </div>






                <div>





                    <volist name="commentList" id="commentList">
                        <div class="comment">
                            <p class="title">  {$commentList.comment_id}贴 </p>
                            <volist name="commentList.pcomment" id="mypcommentList">
                                <div>
                                    <span>{$mypcommentList.comment_id} 原贴： </span>
                                    <p>{$mypcommentList.comment_text} </p>
                                </div>
                            </volist>
                            <p>  {$commentList.comment_text} <p>
                        </div>
                    </volist>
                </div>

                <div>
















                    <div class="panel panel-default">
                        <div class="panel-heading">评论</div>
                        <div class="panel-body">





                            <form class="form-horizontal" method="post" action="__APP__/Article/docomment/">
                                <input name="module_id" value="3"  type="hidden"/>	


                                <input name="item_id" value="{$article.article_id}" type="hidden"/>


                                <div class="form-group">
                                    <label for="textarea" class="col-sm-2 control-label">评论内容</label>
                                    <div class="col-sm-10">


                                        <textarea class="form-control" name="comment_text"  id="textarea" rows="3"></textarea>

                                    </div>



                                </div>



                                <input name="article_id" value="{$article.article_id}" type="hidden"/>	

                                <div class="form-group">
                                    <div class="col-sm-offset-2 col-sm-10">
                                        <button type="submit" class="btn btn-default">发布评论</button>
                                    </div>
                                </div>
                            </form>



                        </div>
                    </div>








                </div>





                <br/>

                <br/><br/><br/><br/><br/>









            </div>

            <include file="./Tpl/N/Common/right.html" />	

        </div>


    </div>

</section>















<include file="./Tpl/N/Common/footer.html" />








<script>








    $('#like_btn').click(function() {




        $.post("__APP__/Public/ajaxUpdateLikeNumber/",
                {
                    id: {$article.article_id},
                    module_id: 1

                },
        function(data) {


            if (data.status == true) {




                likenumbers = $('#like_numbers').text();

                $('#like_numbers').html((likenumbers - 0) + 1);

                layer.alert('谢谢支持!');






            } else if (data.status == -2) {




                layer.alert('谢谢支持！您已经投票');
                //alert('谢谢支持！您已经投票');




            } else if (data.status == false) {
                layer.alert('操作失败!');


            } else {
                layer.alert('谢谢支持!');
                //alert('谢谢支持！');

            }


        }, 'json');




    });


    for (var j = 0, length = $(".comment").length; j < length; ++j) {
        (function(j) {
            var element = $(".comment").eq(j);
            for (var i = element.find(">div").length; 0 < i; --i) {
                (function(index) {
                    element.find(">div").eq(index - 1).prepend(element.find(">div").eq(index));
                })(i);
            }
        })(j)
    }




</script>	






</body>
</html>